
/**
 * AppleIIGo
 * Internal Language Card class
 * (C) 2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#include "InternalLanguageCard.h"

InternalLanguageCard::InternalLanguageCard(Motherboard * motherboard,
										   char * slotDeviceName) : 
LanguageCard(motherboard, slotDeviceName) {
}

void InternalLanguageCard::onMemoryRequested() {
}

void InternalLanguageCard::onMemoryAllocated() {
	ramMemoryOffset =
		motherboard->getMemory()->getMainMemoryOffset(OFFSET_LCBANK1);
}

void InternalLanguageCard::onResetAsserted(bool isRestart) {
	if (isRestart)
		LanguageCard::onResetAsserted(isRestart);
	else {
		mmu->setLanguageCardBank2(true);
		mmu->enableLanguageCardRead(false);
		mmu->enableLanguageCardWrite(true);
		
		isPreWrite = false;
	}
}
